package com.eureka.gateway.enums;

import org.springframework.core.Ordered;

/**
 * @Description 过滤器顺序
 * @Author: 李星 lixing_java@163.com
 * @Date 2019/6/29 22:47
 */
public enum GatewayFilterOrderEnum {
    /**  */
    GATEWAY_LOW(Ordered.LOWEST_PRECEDENCE, "优先级最低"),
    GATEWAY_HI(Ordered.HIGHEST_PRECEDENCE, "优先级最高"),
    /**  */
    MY_RESPONSE_PARAMS(-1, "【全局】输出参数过滤，这里的排序值请不要修改，-1即可"),
    MY_REQUEST_PARAMS( 2, "[网关]请求参数过滤"),
    MY_IP( 3, "【全局】IP过滤" ),
    MY_AUTHORIZE( 4, "【全局】授权过滤"),
    ;

    private int value;
    private String describe;

    GatewayFilterOrderEnum(int value, String describe) {
        this.value = value;
        this.describe = describe;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
